package myhashmap;



import java.util.HashMap;

public class MyHashMapTester {

	

	public static void main(String[] args) {
		
		{
			System.gc();
			
			long usedMB1 = (-Runtime.getRuntime().freeMemory()+Runtime.getRuntime().totalMemory());
			MyHashMap testingHashMap =new MyHashMap();
			for (int i = 0; i < 1000; i++) {
				testingHashMap.put(i, i);
			}
			System.out.println(testingHashMap.toString());
			long usedMB2 = (-Runtime.getRuntime().freeMemory()+Runtime.getRuntime().totalMemory());
			System.out.println(usedMB2-usedMB1);
		}
		
		
	}

}
